package com.wushi.lenovo.asia5b.app_di.profile.presenter;

import com.mvp.base.BasePresenter;
import com.wushi.lenovo.asia5b.app_di.profile.mvpview.PersonalInfoActivityView;
import com.wushi.lenovo.asia5b.app_http.ApiService;

import java.util.Map;

import javax.inject.Inject;


/**
 * Created by zhangyuncai on 2019/3/19.
 */
public class PersonalInfoActivityPresenter extends BasePresenter<PersonalInfoActivityView> {

    ApiService apiService;

    @Inject
    public PersonalInfoActivityPresenter(ApiService apiService) {
        this.apiService = apiService;
    }

    public void updateMember(Map<String, Object> parmaMap) {
        baseSubscribe(apiService.updataMember(parmaMap),
                resultModel -> {
                    getView().updateMemberResult(resultModel,parmaMap);
                });
    }
}